![]() ![]() |
10.5:H310004 Provide a default in the text area.Improper designIn text areas, no default was provided. Improper design:
<FORM>
<LABEL for="username1">name:</LABEL>
<INPUT type="text" name="yourname" id="username1">
<LABEL for="jobdesc1">experience:</LABEL>
<TEXTAREA name="jobdescription" id="jobdesc1" rows="5" cols="60">
</TEXTAREA>
<INPUT type="submit" value="send information">
<INPUT type="reset" value="clear">
</FORM>
End of example Proper demonstrationIn the text area, provide default to inform users the information requested. Proper example:
<FORM>
<LABEL for="username2">name:</LABEL>
<INPUT type="text" name="yourname" id="username2" value="enter your name">
<LABEL for="jobdesc2">experience:</LABEL>
<TEXTAREA name="jobdescription" id="jobdesc2" rows="5" cols="60">
-- please enter your work experience --
</TEXTAREA>
<INPUT type="submit" value="send information">
<INPUT type="reset" value="clear">
</FORM>
End of example |